package com.wssnail.xss.mapper;

import com.wssnail.xss.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: yan
 * @CreateTime: 2023-07-28 16:48
 * @Description: TODO
 * @Version: 1.0
 */
@Mapper
public interface UserMapper {

    @Insert("insert into tb_user values(null,#{name},#{email})")
    void save(User user);

    @Select("select * from tb_user where id=#{id}")
    User findByID(Integer id);
}
